{% extends "::base.html.twig" %}
{% block body %}
<h1>Modifier le repas</h1>

<form action="{{ path('repas_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
    {{ form_widget(edit_form) }}
    <p>
        <button type="submit" class="btn btn-success">Modifier</button>
    </p>
</form>

        <a href="{{ path('repas') }}">
            Retour à la liste
        </a>
   
{% endblock %}